#ifndef YOOHOO_XMPPIM_ERRORLISTENER_H
#define YOOHOO_XMPPIM_ERRORLISTENER_H

#include "xmppim/export.h"
#include "xmppcore/streamerror.h"
#include "xmppcore/stanzaerror.h"

namespace yoohoo_xmppim {

class YOOHOO_XMPPIM_EXPORT StreamErrorListener {
public:
	virtual bool matches(XmppClient* xmppClient, StreamError* error) = 0;
	virtual bool process(XmppClient* xmppClient, StreamError* error) = 0;
};

class YOOHOO_XMPPIM_EXPORT StanzaErrorListener {
public:
	virtual bool matches(XmppClient* xmppClient, StanzaError* error) = 0;
	virtual bool process(XmppClient* xmppClient, StanzaError* error) = 0;
};

}

#endif
